<!--
 * @Description:
 * @Author bianpengfei
 * @create 2021/4/20 22:29
 -->
<template>
  <el-breadcrumb separator="/">
    <transition-group name="breadcrumb">
      <el-breadcrumb-item v-for="item in _breadcrumb" :key="item.path">
        <i :class="[_iconfont, item.icon]"></i>
        <span>{{ item.meta && item.meta.title }}</span>
      </el-breadcrumb-item>
    </transition-group>
  </el-breadcrumb>
</template>

<script>
import { get, sync } from 'vuex-pathify'

export default {
  computed: {
    _breadcrumb: sync('app/breadcrumb'),
    _iconfont: get('app/iconfont')
  }
}
</script>
